<template>
    <div style="width:80%">
        <h3>管理员信息管理</h3>
        <el-table
        :data="user"
        style="width: 100%;text-align:center">
            <el-table-column
                prop="name"
                label="真实姓名"
                >
            </el-table-column>
            <el-table-column
                prop="address"
                label="收货地址"
            >
            </el-table-column>
            <el-table-column
                prop="username"
                label="用户名">
            </el-table-column>
            <el-table-column
                prop="loginaccount"
                label="登陆账户">
            </el-table-column>
            <el-table-column
                prop="loginpassword"
                label="登陆密码">
            </el-table-column>
            <el-table-column
                prop="paymentpassword"
                label="支付密码">
            </el-table-column>
            <el-table-column
            fixed="right"
            label="操作"
            width="100">
            <template>
                <el-button @click="manageredit" type="text" size="small">编辑</el-button>
                <el-button @click="managerdel" type="text" size="small">删除</el-button>
            </template>
            </el-table-column>
        </el-table>
    </div>
</template>
<script>
export default {
    data(){
        return{
            user:[
                {"name":"张三","address":"北京市","username":"helloword","loginaccount":"1234444555","loginpassword":"123456","paymentpassword":"1234567"}
            ]
        }
    },
    methods:{
        manageredit(){
            this.$router.push("/")
        },
        managerdel(){
            this.$router.push("/")
        }
    }
}
</script>